
n(){
  //get elem
  let html= `
  <div class="notepad-dlg-goto">
      <div class="notepad-dlgbox">
          <div class="titlebar">
                <p class="title">转到指定行</p>
                <span class="close-btn">×</span>
          </div>
          <div class="main">
                <label>行号(<u>L</u>):</label>
                <br>
                <input class="txt-line-num" type="text" autofocus>
                <br>
                <input class="btn-goto" type="button" value="转到">
                <input class="btn-cancel" type="button" value="取消">
          </div>
      </div>
  </div>`;
  let $dlg=$(html);
/*
  var divSlider = document.getElementsByClassName(".notepad-dlgbox")[0];
  divSlider.addEventListener('mousedown', mouseDown, false);
  document.addEventListener('mouseup', mouseUp, false);
  function mouseDown() {
    document.addEventListener('mousemove', sliderMove, false);
  }
  function mouseUp() {
    document.removeEventListener('mousemove', sliderMove, false);
  }
  function sliderMove(e) {
    // 解决拖拽鼠标粘滞的问题
    if (e.preventDefault) {
      e.preventDefault();
    } else {
      e.returnValue = false;
    }
    divSlider.style.left = e.clientX + 'px';
    divSlider.style.top = e.clientY + 'px';
  }
*/
  //设计时。运行时
  function show(config){
    //$.extend(cfg,config);//合并参数
    $('body').append($dlg);

  }
  function destroy(){
    $dlg.remove();
  }

  return {show,destroy};

})();
